import request from '@/utils/request'

// 查询推送消息记录列表
export function listSysPush(query) {
  return request({
    url: '/system/sysPush/list',
    method: 'get',
    params: query
  })
}

// 查询推送消息记录详细
export function getSysPush(id) {
  return request({
    url: '/system/sysPush/' + id,
    method: 'get'
  })
}

// 新增推送消息记录
export function addSysPush(data) {
  return request({
    url: '/system/sysPush',
    method: 'post',
    data: data
  })
}

// 修改推送消息记录
export function updateSysPush(data) {
  return request({
    url: '/system/sysPush',
    method: 'put',
    data: data
  })
}

// 删除推送消息记录
export function delSysPush(id) {
  return request({
    url: '/system/sysPush/' + id,
    method: 'delete'
  })
}


// 推送消息
export function sysPush(data) {
  return request({
    url: '/backstage/sys/push/message',
    method: 'post',
    data: data
  })
}